<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title am-fl">{{title}}读书笔记</div>
                    <div class="widget-function am-fr">
                        <a href="javascript:;" ><span ng-click="cancel()">返回</span></a>
                    </div>
                </div>
                <div class="widget-body am-fr">
                    <form class="am-form tpl-form-border-form tpl-form-border-br">
                        <div class="am-form-group">
                            <label for="bookCategory" class="am-u-sm-3 am-form-label">选择图书
                                <span class="requireColor">*</span>
                            </label>
                            <div class="am-u-sm-9">
                                <select id="bookCategory" ng-model="entity.bookId"  ng-options="item.id as item.name for item in bookList" ng-disabled="viewFlag" style="color:darkgray;">
                                    <option value="">请选择...</option>
                                </select>
                            </div>
                        </div>
                        <div class="am-form-group">
                            <label for="nodeTitle" class="am-u-sm-3 am-form-label">标题 <span class="requireColor">*</span></label>
                            <div class="am-u-sm-9">
                                <input type="text" class="tpl-form-input" id="nodeTitle" placeholder="请输入笔记标题" ng-model="entity.title" ng-disabled="viewFlag">
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="startTime" class="am-u-sm-3 am-form-label">阅读开始时间</label>
                            <div class="am-u-sm-9">
                                <input type="date" class="am-form-field tpl-form-no-bg" placeholder="请选择阅读开始时间" ng-model="entity.beginTime" ng-disabled="viewFlag">

                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="endTime" class="am-u-sm-3 am-form-label">阅读结束时间</label>
                            <div class="am-u-sm-9">
                                <input type="date" class="am-form-field tpl-form-no-bg" placeholder="请选择阅读结束时间" ng-model="entity.endTime" ng-disabled="viewFlag">
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="nodeinfo" class="am-u-sm-3 am-form-label">笔记 <span class="requireColor">*</span></label>
                            <div class="am-u-sm-9">
                                <textarea class="" rows="10" id="nodeinfo" placeholder="请输入笔记内容" ng-model="entity.content" ng-disabled="viewFlag"></textarea>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " ng-click="save()" ng-show="!viewFlag">保存</button>
                                <button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " ng-click="cancel()" ng-show="!viewFlag">取消</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
